/*
 * Copyright 2025 arisgo@163.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.arisgo.cloud.attendance.clazz.vo;

import com.arisgo.cloud.web.model.NumberId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * 班次
 *
 * @author Coulson
 * @since 2024-12-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "班次信息")
public class ClassShiftVo extends NumberId {

    /**
     * 租户
     */
    @Schema(name = "tenantId", description = "租户")
    private Long tenantId;

    /**
     * 名称
     */
    @Schema(name = "name", description = "名称")
    private String name;

    /**
     * 简称
     */
    @Schema(name = "shortName", description = "简称")
    private String shortName;

    /**
     * 工时类型 0/标准工时制 1/综合工时制 2/不定时工时制
     */
    @Schema(name = "type", description = "工时类型")
    private String type;

    /**
     * 备注
     */
    @Schema(name = "remark", description = "备注")
    private String remark;

    /**
     * 时长（h）
     */
    @Schema(name = "duration", description = "时长（h）")
    private BigDecimal duration;

    /**
     * 颜色
     */
    @Schema(name = "color", description = "颜色")
    private String color;

    /**
     * 状态
     */
    @Schema(name = "status", description = "状态 0/启用 1/停用")
    private Integer status;

    /**
     * 班段
     */
    @Schema(name = "segments", description = "班段")
    private List<ClassSegmentVo> segments;

}
